DigiOffice Gateway Web Services

<back to all web services

ProcessProjectRequestMessage

Requires Authentication
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class ProcessProjectRequestMessage
    {
        public UUID InstanceId = null;
        public ProjectRequestMessage ProjectRequest = null;
        
        public UUID getInstanceId() { return InstanceId; }
        public ProcessProjectRequestMessage setInstanceId(UUID value) { this.InstanceId = value; return this; }
        public ProjectRequestMessage getProjectRequest() { return ProjectRequest; }
        public ProcessProjectRequestMessage setProjectRequest(ProjectRequestMessage value) { this.ProjectRequest = value; return this; }
    }

    public static class ProjectRequestMessage
    {
        public Header Header = null;
        public Reference ProjectReference = null;
        public Boolean IncludeHousingTypes = null;
        public Boolean IncludeConstructionBlocks = null;
        public Boolean IncludeConstructionNumbers = null;
        public Boolean IncludeDocuments = null;
        public Boolean IncludePurchaseContracts = null;
        
        public Header getHeader() { return Header; }
        public ProjectRequestMessage setHeader(Header value) { this.Header = value; return this; }
        public Reference getProjectReference() { return ProjectReference; }
        public ProjectRequestMessage setProjectReference(Reference value) { this.ProjectReference = value; return this; }
        public Boolean isIncludeHousingTypes() { return IncludeHousingTypes; }
        public ProjectRequestMessage setIncludeHousingTypes(Boolean value) { this.IncludeHousingTypes = value; return this; }
        public Boolean isIncludeConstructionBlocks() { return IncludeConstructionBlocks; }
        public ProjectRequestMessage setIncludeConstructionBlocks(Boolean value) { this.IncludeConstructionBlocks = value; return this; }
        public Boolean isIncludeConstructionNumbers() { return IncludeConstructionNumbers; }
        public ProjectRequestMessage setIncludeConstructionNumbers(Boolean value) { this.IncludeConstructionNumbers = value; return this; }
        public Boolean isIncludeDocuments() { return IncludeDocuments; }
        public ProjectRequestMessage setIncludeDocuments(Boolean value) { this.IncludeDocuments = value; return this; }
        public Boolean isIncludePurchaseContracts() { return IncludePurchaseContracts; }
        public ProjectRequestMessage setIncludePurchaseContracts(Boolean value) { this.IncludePurchaseContracts = value; return this; }
    }

    public static class Header
    {
        public String MessageID = null;
        public Date Timestamp = null;
        public Party Sender = null;
        public Party Recipient = null;
        public Object RequestMessageID = null;
        
        public String getMessageID() { return MessageID; }
        public Header setMessageID(String value) { this.MessageID = value; return this; }
        public Date getTimestamp() { return Timestamp; }
        public Header setTimestamp(Date value) { this.Timestamp = value; return this; }
        public Party getSender() { return Sender; }
        public Header setSender(Party value) { this.Sender = value; return this; }
        public Party getRecipient() { return Recipient; }
        public Header setRecipient(Party value) { this.Recipient = value; return this; }
        public Object getRequestMessageID() { return RequestMessageID; }
        public Header setRequestMessageID(Object value) { this.RequestMessageID = value; return this; }
    }

    public static class Party
    {
        public String Title = null;
        public String Code = null;
        public String Version = null;
        public Environment Environment = null;
        
        public String getTitle() { return Title; }
        public Party setTitle(String value) { this.Title = value; return this; }
        public String getCode() { return Code; }
        public Party setCode(String value) { this.Code = value; return this; }
        public String getVersion() { return Version; }
        public Party setVersion(String value) { this.Version = value; return this; }
        public Environment getEnvironment() { return Environment; }
        public Party setEnvironment(Environment value) { this.Environment = value; return this; }
    }

    public static class Environment
    {
        public String Title = null;
        public String Code = null;
        
        public String getTitle() { return Title; }
        public Environment setTitle(String value) { this.Title = value; return this; }
        public String getCode() { return Code; }
        public Environment setCode(String value) { this.Code = value; return this; }
    }

    public static class Reference
    {
        public String GlobalID = null;
        public String Title = null;
        
        public String getGlobalID() { return GlobalID; }
        public Reference setGlobalID(String value) { this.GlobalID = value; return this; }
        public String getTitle() { return Title; }
        public Reference setTitle(String value) { this.Title = value; return this; }
    }

    public static class ProjectResponseMessage
    {
        public Header Header = null;
        public Reference ProjectReference = null;
        public Project Project = null;
        public ArrayList<HousingType> HousingTypes = null;
        public ArrayList<ConstructionBlock> ConstructionBlocks = null;
        public ArrayList<ConstructionNumber> ConstructionNumbers = null;
        public ArrayList<Document> Documents = null;
        public ArrayList<PurchaseContract> PurchaseContracts = null;
        
        public Header getHeader() { return Header; }
        public ProjectResponseMessage setHeader(Header value) { this.Header = value; return this; }
        public Reference getProjectReference() { return ProjectReference; }
        public ProjectResponseMessage setProjectReference(Reference value) { this.ProjectReference = value; return this; }
        public Project getProject() { return Project; }
        public ProjectResponseMessage setProject(Project value) { this.Project = value; return this; }
        public ArrayList<HousingType> getHousingTypes() { return HousingTypes; }
        public ProjectResponseMessage setHousingTypes(ArrayList<HousingType> value) { this.HousingTypes = value; return this; }
        public ArrayList<ConstructionBlock> getConstructionBlocks() { return ConstructionBlocks; }
        public ProjectResponseMessage setConstructionBlocks(ArrayList<ConstructionBlock> value) { this.ConstructionBlocks = value; return this; }
        public ArrayList<ConstructionNumber> getConstructionNumbers() { return ConstructionNumbers; }
        public ProjectResponseMessage setConstructionNumbers(ArrayList<ConstructionNumber> value) { this.ConstructionNumbers = value; return this; }
        public ArrayList<Document> getDocuments() { return Documents; }
        public ProjectResponseMessage setDocuments(ArrayList<Document> value) { this.Documents = value; return this; }
        public ArrayList<PurchaseContract> getPurchaseContracts() { return PurchaseContracts; }
        public ProjectResponseMessage setPurchaseContracts(ArrayList<PurchaseContract> value) { this.PurchaseContracts = value; return this; }
    }

    public static class Project
    {
        public String GlobalID = null;
        public Date CreationDate = null;
        public String CreatedBy = null;
        public Date ModifiedDate = null;
        public String ModifiedBy = null;
        public String Code = null;
        public String Name = null;
        public String Description1 = null;
        public String Description2 = null;
        public Address Address = null;
        public MailingAddress MailingAddress = null;
        public Reference ProjectCategoryReference = null;
        public Reference ProjectTypeReference = null;
        public Reference ProjectStatusReference = null;
        public Date StartDate = null;
        public Date EndDate = null;
        public Date CompletionDate = null;
        public Boolean Inactive = null;
        public String Website = null;
        public Boolean IsTemplateProject = null;
        public ArrayList<CustomField> CustomFields = null;
        
        public String getGlobalID() { return GlobalID; }
        public Project setGlobalID(String value) { this.GlobalID = value; return this; }
        public Date getCreationDate() { return CreationDate; }
        public Project setCreationDate(Date value) { this.CreationDate = value; return this; }
        public String getCreatedBy() { return CreatedBy; }
        public Project setCreatedBy(String value) { this.CreatedBy = value; return this; }
        public Date getModifiedDate() { return ModifiedDate; }
        public Project setModifiedDate(Date value) { this.ModifiedDate = value; return this; }
        public String getModifiedBy() { return ModifiedBy; }
        public Project setModifiedBy(String value) { this.ModifiedBy = value; return this; }
        public String getCode() { return Code; }
        public Project setCode(String value) { this.Code = value; return this; }
        public String getName() { return Name; }
        public Project setName(String value) { this.Name = value; return this; }
        public String getDescription1() { return Description1; }
        public Project setDescription1(String value) { this.Description1 = value; return this; }
        public String getDescription2() { return Description2; }
        public Project setDescription2(String value) { this.Description2 = value; return this; }
        public Address getAddress() { return Address; }
        public Project setAddress(Address value) { this.Address = value; return this; }
        public MailingAddress getMailingAddress() { return MailingAddress; }
        public Project setMailingAddress(MailingAddress value) { this.MailingAddress = value; return this; }
        public Reference getProjectCategoryReference() { return ProjectCategoryReference; }
        public Project setProjectCategoryReference(Reference value) { this.ProjectCategoryReference = value; return this; }
        public Reference getProjectTypeReference() { return ProjectTypeReference; }
        public Project setProjectTypeReference(Reference value) { this.ProjectTypeReference = value; return this; }
        public Reference getProjectStatusReference() { return ProjectStatusReference; }
        public Project setProjectStatusReference(Reference value) { this.ProjectStatusReference = value; return this; }
        public Date getStartDate() { return StartDate; }
        public Project setStartDate(Date value) { this.StartDate = value; return this; }
        public Date getEndDate() { return EndDate; }
        public Project setEndDate(Date value) { this.EndDate = value; return this; }
        public Date getCompletionDate() { return CompletionDate; }
        public Project setCompletionDate(Date value) { this.CompletionDate = value; return this; }
        public Boolean isInactive() { return Inactive; }
        public Project setInactive(Boolean value) { this.Inactive = value; return this; }
        public String getWebsite() { return Website; }
        public Project setWebsite(String value) { this.Website = value; return this; }
        public Boolean getIsTemplateProject() { return IsTemplateProject; }
        public Project setIsTemplateProject(Boolean value) { this.IsTemplateProject = value; return this; }
        public ArrayList<CustomField> getCustomFields() { return CustomFields; }
        public Project setCustomFields(ArrayList<CustomField> value) { this.CustomFields = value; return this; }
    }

    public static class Address
    {
        public String AddressLine1 = null;
        public String AddressLine2 = null;
        public String HouseNumber = null;
        public String HouseNumberSuffix = null;
        public String PostalCode = null;
        public String City = null;
        public Reference Country = null;
        
        public String getAddressLine1() { return AddressLine1; }
        public Address setAddressLine1(String value) { this.AddressLine1 = value; return this; }
        public String getAddressLine2() { return AddressLine2; }
        public Address setAddressLine2(String value) { this.AddressLine2 = value; return this; }
        public String getHouseNumber() { return HouseNumber; }
        public Address setHouseNumber(String value) { this.HouseNumber = value; return this; }
        public String getHouseNumberSuffix() { return HouseNumberSuffix; }
        public Address setHouseNumberSuffix(String value) { this.HouseNumberSuffix = value; return this; }
        public String getPostalCode() { return PostalCode; }
        public Address setPostalCode(String value) { this.PostalCode = value; return this; }
        public String getCity() { return City; }
        public Address setCity(String value) { this.City = value; return this; }
        public Reference getCountry() { return Country; }
        public Address setCountry(Reference value) { this.Country = value; return this; }
    }

    public static class MailingAddress
    {
        public String POBox = null;
        public String PostalCode = null;
        public String City = null;
        public Reference Country = null;
        
        public String getPoBox() { return POBox; }
        public MailingAddress setPoBox(String value) { this.POBox = value; return this; }
        public String getPostalCode() { return PostalCode; }
        public MailingAddress setPostalCode(String value) { this.PostalCode = value; return this; }
        public String getCity() { return City; }
        public MailingAddress setCity(String value) { this.City = value; return this; }
        public Reference getCountry() { return Country; }
        public MailingAddress setCountry(Reference value) { this.Country = value; return this; }
    }

    public static class CustomField
    {
        public String Name = null;
        public String Value = null;
        
        public String getName() { return Name; }
        public CustomField setName(String value) { this.Name = value; return this; }
        public String getValue() { return Value; }
        public CustomField setValue(String value) { this.Value = value; return this; }
    }

    public static class HousingType
    {
        public String GlobalID = null;
        public Reference ProjectReference = null;
        public String Code = null;
        public String Description = null;
        public ArrayList<CustomField> CustomFields = null;
        public Date CreationDate = null;
        public String CreatedBy = null;
        public Date ModifiedDate = null;
        public String ModifiedBy = null;
        
        public String getGlobalID() { return GlobalID; }
        public HousingType setGlobalID(String value) { this.GlobalID = value; return this; }
        public Reference getProjectReference() { return ProjectReference; }
        public HousingType setProjectReference(Reference value) { this.ProjectReference = value; return this; }
        public String getCode() { return Code; }
        public HousingType setCode(String value) { this.Code = value; return this; }
        public String getDescription() { return Description; }
        public HousingType setDescription(String value) { this.Description = value; return this; }
        public ArrayList<CustomField> getCustomFields() { return CustomFields; }
        public HousingType setCustomFields(ArrayList<CustomField> value) { this.CustomFields = value; return this; }
        public Date getCreationDate() { return CreationDate; }
        public HousingType setCreationDate(Date value) { this.CreationDate = value; return this; }
        public String getCreatedBy() { return CreatedBy; }
        public HousingType setCreatedBy(String value) { this.CreatedBy = value; return this; }
        public Date getModifiedDate() { return ModifiedDate; }
        public HousingType setModifiedDate(Date value) { this.ModifiedDate = value; return this; }
        public String getModifiedBy() { return ModifiedBy; }
        public HousingType setModifiedBy(String value) { this.ModifiedBy = value; return this; }
    }

    public static class ConstructionBlock
    {
        public String GlobalID = null;
        public Reference ProjectReference = null;
        public String Code = null;
        public String Description = null;
        public ArrayList<CustomField> CustomFields = null;
        public Date CreationDate = null;
        public String CreatedBy = null;
        public Date ModifiedDate = null;
        public String ModifiedBy = null;
        
        public String getGlobalID() { return GlobalID; }
        public ConstructionBlock setGlobalID(String value) { this.GlobalID = value; return this; }
        public Reference getProjectReference() { return ProjectReference; }
        public ConstructionBlock setProjectReference(Reference value) { this.ProjectReference = value; return this; }
        public String getCode() { return Code; }
        public ConstructionBlock setCode(String value) { this.Code = value; return this; }
        public String getDescription() { return Description; }
        public ConstructionBlock setDescription(String value) { this.Description = value; return this; }
        public ArrayList<CustomField> getCustomFields() { return CustomFields; }
        public ConstructionBlock setCustomFields(ArrayList<CustomField> value) { this.CustomFields = value; return this; }
        public Date getCreationDate() { return CreationDate; }
        public ConstructionBlock setCreationDate(Date value) { this.CreationDate = value; return this; }
        public String getCreatedBy() { return CreatedBy; }
        public ConstructionBlock setCreatedBy(String value) { this.CreatedBy = value; return this; }
        public Date getModifiedDate() { return ModifiedDate; }
        public ConstructionBlock setModifiedDate(Date value) { this.ModifiedDate = value; return this; }
        public String getModifiedBy() { return ModifiedBy; }
        public ConstructionBlock setModifiedBy(String value) { this.ModifiedBy = value; return this; }
    }

    public static class ConstructionNumber
    {
        public String GlobalID = null;
        public Reference ProjectReference = null;
        public Reference HousingTypeReference = null;
        public Reference ConstructionBlockReference = null;
        public String Code = null;
        public String Description = null;
        public Address Address = null;
        public Boolean RentalHouse = null;
        public String GuaranteeCertificateNumber = null;
        public Boolean Inactive = null;
        public ArrayList<CustomField> CustomFields = null;
        public Date CreationDate = null;
        public String CreatedBy = null;
        public Date ModifiedDate = null;
        public String ModifiedBy = null;
        public Date ViewingDate = null;
        public Boolean ViewingDateSpecified = null;
        public Date DeliveryDate = null;
        public Boolean DeliveryDateSpecified = null;
        
        public String getGlobalID() { return GlobalID; }
        public ConstructionNumber setGlobalID(String value) { this.GlobalID = value; return this; }
        public Reference getProjectReference() { return ProjectReference; }
        public ConstructionNumber setProjectReference(Reference value) { this.ProjectReference = value; return this; }
        public Reference getHousingTypeReference() { return HousingTypeReference; }
        public ConstructionNumber setHousingTypeReference(Reference value) { this.HousingTypeReference = value; return this; }
        public Reference getConstructionBlockReference() { return ConstructionBlockReference; }
        public ConstructionNumber setConstructionBlockReference(Reference value) { this.ConstructionBlockReference = value; return this; }
        public String getCode() { return Code; }
        public ConstructionNumber setCode(String value) { this.Code = value; return this; }
        public String getDescription() { return Description; }
        public ConstructionNumber setDescription(String value) { this.Description = value; return this; }
        public Address getAddress() { return Address; }
        public ConstructionNumber setAddress(Address value) { this.Address = value; return this; }
        public Boolean isRentalHouse() { return RentalHouse; }
        public ConstructionNumber setRentalHouse(Boolean value) { this.RentalHouse = value; return this; }
        public String getGuaranteeCertificateNumber() { return GuaranteeCertificateNumber; }
        public ConstructionNumber setGuaranteeCertificateNumber(String value) { this.GuaranteeCertificateNumber = value; return this; }
        public Boolean isInactive() { return Inactive; }
        public ConstructionNumber setInactive(Boolean value) { this.Inactive = value; return this; }
        public ArrayList<CustomField> getCustomFields() { return CustomFields; }
        public ConstructionNumber setCustomFields(ArrayList<CustomField> value) { this.CustomFields = value; return this; }
        public Date getCreationDate() { return CreationDate; }
        public ConstructionNumber setCreationDate(Date value) { this.CreationDate = value; return this; }
        public String getCreatedBy() { return CreatedBy; }
        public ConstructionNumber setCreatedBy(String value) { this.CreatedBy = value; return this; }
        public Date getModifiedDate() { return ModifiedDate; }
        public ConstructionNumber setModifiedDate(Date value) { this.ModifiedDate = value; return this; }
        public String getModifiedBy() { return ModifiedBy; }
        public ConstructionNumber setModifiedBy(String value) { this.ModifiedBy = value; return this; }
        public Date getViewingDate() { return ViewingDate; }
        public ConstructionNumber setViewingDate(Date value) { this.ViewingDate = value; return this; }
        public Boolean isViewingDateSpecified() { return ViewingDateSpecified; }
        public ConstructionNumber setViewingDateSpecified(Boolean value) { this.ViewingDateSpecified = value; return this; }
        public Date getDeliveryDate() { return DeliveryDate; }
        public ConstructionNumber setDeliveryDate(Date value) { this.DeliveryDate = value; return this; }
        public Boolean isDeliveryDateSpecified() { return DeliveryDateSpecified; }
        public ConstructionNumber setDeliveryDateSpecified(Boolean value) { this.DeliveryDateSpecified = value; return this; }
    }

    public static class Document implements ICustomProperties
    {
        public UUID ID = null;
        public UUID RootDocumentID = null;
        public UUID RegistrationprofileID = null;
        public String Title = null;
        public String FullTitle = null;
        public String Number = null;
        public String Version = null;
        public String ExternalNumber = null;
        public String ExternalVersion = null;
        public String InternalNumber = null;
        public String InternalInvoiceNumber = null;
        public Integer PersonID = null;
        public Integer RelationID = null;
        public String RelationTitle = null;
        public Integer ProjectID = null;
        public String ProjectTitle = null;
        public String Extension = null;
        public Date Date = null;
        public Integer CommentsCount = null;
        public Boolean HasComments = null;
        public Boolean HasPreview = null;
        public String ExtraField = null;
        public Boolean IsFavorite = null;
        public String DocumentcategoryText = null;
        public Long FileSize = null;
        public Date FileDate = null;
        public String Hash = null;
        public String HashType = null;
        public String FileUrl = null;
        public String StandardDocumentUrl = null;
        public Boolean IsCorporateIdentity = null;
        public String UserTitle = null;
        public Boolean IsFrozen = null;
        public Integer InternalCompanyID = null;
        public String DirectUrl = null;
        public Boolean AllowDigitalSigningOnlyOnPrimaryVersions = null;
        public Boolean IsPrimaryVersion = null;
        public String FileExtension = null;
        public HashMap<String,Object> CustomProperties = null;
        
        public UUID getId() { return ID; }
        public Document setId(UUID value) { this.ID = value; return this; }
        public UUID getRootDocumentID() { return RootDocumentID; }
        public Document setRootDocumentID(UUID value) { this.RootDocumentID = value; return this; }
        public UUID getRegistrationprofileID() { return RegistrationprofileID; }
        public Document setRegistrationprofileID(UUID value) { this.RegistrationprofileID = value; return this; }
        public String getTitle() { return Title; }
        public Document setTitle(String value) { this.Title = value; return this; }
        public String getFullTitle() { return FullTitle; }
        public Document setFullTitle(String value) { this.FullTitle = value; return this; }
        public String getNumber() { return Number; }
        public Document setNumber(String value) { this.Number = value; return this; }
        public String getVersion() { return Version; }
        public Document setVersion(String value) { this.Version = value; return this; }
        public String getExternalNumber() { return ExternalNumber; }
        public Document setExternalNumber(String value) { this.ExternalNumber = value; return this; }
        public String getExternalVersion() { return ExternalVersion; }
        public Document setExternalVersion(String value) { this.ExternalVersion = value; return this; }
        public String getInternalNumber() { return InternalNumber; }
        public Document setInternalNumber(String value) { this.InternalNumber = value; return this; }
        public String getInternalInvoiceNumber() { return InternalInvoiceNumber; }
        public Document setInternalInvoiceNumber(String value) { this.InternalInvoiceNumber = value; return this; }
        public Integer getPersonID() { return PersonID; }
        public Document setPersonID(Integer value) { this.PersonID = value; return this; }
        public Integer getRelationID() { return RelationID; }
        public Document setRelationID(Integer value) { this.RelationID = value; return this; }
        public String getRelationTitle() { return RelationTitle; }
        public Document setRelationTitle(String value) { this.RelationTitle = value; return this; }
        public Integer getProjectID() { return ProjectID; }
        public Document setProjectID(Integer value) { this.ProjectID = value; return this; }
        public String getProjectTitle() { return ProjectTitle; }
        public Document setProjectTitle(String value) { this.ProjectTitle = value; return this; }
        public String getExtension() { return Extension; }
        public Document setExtension(String value) { this.Extension = value; return this; }
        public Date getDate() { return Date; }
        public Document setDate(Date value) { this.Date = value; return this; }
        public Integer getCommentsCount() { return CommentsCount; }
        public Document setCommentsCount(Integer value) { this.CommentsCount = value; return this; }
        public Boolean isHasComments() { return HasComments; }
        public Document setHasComments(Boolean value) { this.HasComments = value; return this; }
        public Boolean isHasPreview() { return HasPreview; }
        public Document setHasPreview(Boolean value) { this.HasPreview = value; return this; }
        public String getExtraField() { return ExtraField; }
        public Document setExtraField(String value) { this.ExtraField = value; return this; }
        public Boolean getIsFavorite() { return IsFavorite; }
        public Document setIsFavorite(Boolean value) { this.IsFavorite = value; return this; }
        public String getDocumentcategoryText() { return DocumentcategoryText; }
        public Document setDocumentcategoryText(String value) { this.DocumentcategoryText = value; return this; }
        public Long getFileSize() { return FileSize; }
        public Document setFileSize(Long value) { this.FileSize = value; return this; }
        public Date getFileDate() { return FileDate; }
        public Document setFileDate(Date value) { this.FileDate = value; return this; }
        public String getHash() { return Hash; }
        public Document setHash(String value) { this.Hash = value; return this; }
        public String getHashType() { return HashType; }
        public Document setHashType(String value) { this.HashType = value; return this; }
        public String getFileUrl() { return FileUrl; }
        public Document setFileUrl(String value) { this.FileUrl = value; return this; }
        public String getStandardDocumentUrl() { return StandardDocumentUrl; }
        public Document setStandardDocumentUrl(String value) { this.StandardDocumentUrl = value; return this; }
        public Boolean getIsCorporateIdentity() { return IsCorporateIdentity; }
        public Document setIsCorporateIdentity(Boolean value) { this.IsCorporateIdentity = value; return this; }
        public String getUserTitle() { return UserTitle; }
        public Document setUserTitle(String value) { this.UserTitle = value; return this; }
        public Boolean getIsFrozen() { return IsFrozen; }
        public Document setIsFrozen(Boolean value) { this.IsFrozen = value; return this; }
        public Integer getInternalCompanyID() { return InternalCompanyID; }
        public Document setInternalCompanyID(Integer value) { this.InternalCompanyID = value; return this; }
        public String getDirectUrl() { return DirectUrl; }
        public Document setDirectUrl(String value) { this.DirectUrl = value; return this; }
        public Boolean isAllowDigitalSigningOnlyOnPrimaryVersions() { return AllowDigitalSigningOnlyOnPrimaryVersions; }
        public Document setAllowDigitalSigningOnlyOnPrimaryVersions(Boolean value) { this.AllowDigitalSigningOnlyOnPrimaryVersions = value; return this; }
        public Boolean getIsPrimaryVersion() { return IsPrimaryVersion; }
        public Document setIsPrimaryVersion(Boolean value) { this.IsPrimaryVersion = value; return this; }
        public String getFileExtension() { return FileExtension; }
        public Document setFileExtension(String value) { this.FileExtension = value; return this; }
        public HashMap<String,Object> getCustomProperties() { return CustomProperties; }
        public Document setCustomProperties(HashMap<String,Object> value) { this.CustomProperties = value; return this; }
    }

    public static class PurchaseContract
    {
        public String GlobalID = null;
        public String Code = null;
        public String Description = null;
        public Reference ProjectReference = null;
        public String ProductCode = null;
        public Relation Relation = null;
        public Boolean Inactive = null;
        public ArrayList<CustomField> CustomFields = null;
        public Date CreationDate = null;
        public String CreatedBy = null;
        public Date ModifiedDate = null;
        public String ModifiedBy = null;
        
        public String getGlobalID() { return GlobalID; }
        public PurchaseContract setGlobalID(String value) { this.GlobalID = value; return this; }
        public String getCode() { return Code; }
        public PurchaseContract setCode(String value) { this.Code = value; return this; }
        public String getDescription() { return Description; }
        public PurchaseContract setDescription(String value) { this.Description = value; return this; }
        public Reference getProjectReference() { return ProjectReference; }
        public PurchaseContract setProjectReference(Reference value) { this.ProjectReference = value; return this; }
        public String getProductCode() { return ProductCode; }
        public PurchaseContract setProductCode(String value) { this.ProductCode = value; return this; }
        public Relation getRelation() { return Relation; }
        public PurchaseContract setRelation(Relation value) { this.Relation = value; return this; }
        public Boolean isInactive() { return Inactive; }
        public PurchaseContract setInactive(Boolean value) { this.Inactive = value; return this; }
        public ArrayList<CustomField> getCustomFields() { return CustomFields; }
        public PurchaseContract setCustomFields(ArrayList<CustomField> value) { this.CustomFields = value; return this; }
        public Date getCreationDate() { return CreationDate; }
        public PurchaseContract setCreationDate(Date value) { this.CreationDate = value; return this; }
        public String getCreatedBy() { return CreatedBy; }
        public PurchaseContract setCreatedBy(String value) { this.CreatedBy = value; return this; }
        public Date getModifiedDate() { return ModifiedDate; }
        public PurchaseContract setModifiedDate(Date value) { this.ModifiedDate = value; return this; }
        public String getModifiedBy() { return ModifiedBy; }
        public PurchaseContract setModifiedBy(String value) { this.ModifiedBy = value; return this; }
    }

    public static class Relation
    {
        public String GlobalID = null;
        public String NameLine1 = null;
        public String NameLine2 = null;
        public Address Address = null;
        public MailingAddress MailingAddress = null;
        public String Telephone = null;
        public String Mobile = null;
        public String Email = null;
        public String IBAN = null;
        public String BankAccountNumber = null;
        public String Website = null;
        public Boolean Inactive = null;
        public ArrayList<CustomField> CustomFields = null;
        public Date CreationDate = null;
        public String CreatedBy = null;
        public Date ModifiedDate = null;
        public String ModifiedBy = null;
        
        public String getGlobalID() { return GlobalID; }
        public Relation setGlobalID(String value) { this.GlobalID = value; return this; }
        public String getNameLine1() { return NameLine1; }
        public Relation setNameLine1(String value) { this.NameLine1 = value; return this; }
        public String getNameLine2() { return NameLine2; }
        public Relation setNameLine2(String value) { this.NameLine2 = value; return this; }
        public Address getAddress() { return Address; }
        public Relation setAddress(Address value) { this.Address = value; return this; }
        public MailingAddress getMailingAddress() { return MailingAddress; }
        public Relation setMailingAddress(MailingAddress value) { this.MailingAddress = value; return this; }
        public String getTelephone() { return Telephone; }
        public Relation setTelephone(String value) { this.Telephone = value; return this; }
        public String getMobile() { return Mobile; }
        public Relation setMobile(String value) { this.Mobile = value; return this; }
        public String getEmail() { return Email; }
        public Relation setEmail(String value) { this.Email = value; return this; }
        public String getIban() { return IBAN; }
        public Relation setIban(String value) { this.IBAN = value; return this; }
        public String getBankAccountNumber() { return BankAccountNumber; }
        public Relation setBankAccountNumber(String value) { this.BankAccountNumber = value; return this; }
        public String getWebsite() { return Website; }
        public Relation setWebsite(String value) { this.Website = value; return this; }
        public Boolean isInactive() { return Inactive; }
        public Relation setInactive(Boolean value) { this.Inactive = value; return this; }
        public ArrayList<CustomField> getCustomFields() { return CustomFields; }
        public Relation setCustomFields(ArrayList<CustomField> value) { this.CustomFields = value; return this; }
        public Date getCreationDate() { return CreationDate; }
        public Relation setCreationDate(Date value) { this.CreationDate = value; return this; }
        public String getCreatedBy() { return CreatedBy; }
        public Relation setCreatedBy(String value) { this.CreatedBy = value; return this; }
        public Date getModifiedDate() { return ModifiedDate; }
        public Relation setModifiedDate(Date value) { this.ModifiedDate = value; return this; }
        public String getModifiedBy() { return ModifiedBy; }
        public Relation setModifiedBy(String value) { this.ModifiedBy = value; return this; }
    }

}

Java ProcessProjectRequestMessage DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/ProcessProjectRequestMessage HTTP/1.1 
Host: kpm_digiofficeapigateway.tbi.nl 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	ProjectRequest: 
	{
		Header: 
		{
			MessageID: String,
			Timestamp: 0001-01-01,
			Sender: 
			{
				Title: String,
				Code: String,
				Version: String,
				Environment: 
				{
					Title: String,
					Code: String
				}
			},
			Recipient: 
			{
				Title: String,
				Code: String,
				Version: String,
				Environment: 
				{
					Title: String,
					Code: String
				}
			},
			RequestMessageID: {}
		},
		ProjectReference: 
		{
			GlobalID: String,
			Title: String
		},
		IncludeHousingTypes: False,
		IncludeConstructionBlocks: False,
		IncludeConstructionNumbers: False,
		IncludeDocuments: False,
		IncludePurchaseContracts: False
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Header: 
	{
		MessageID: String,
		Timestamp: 0001-01-01,
		Sender: 
		{
			Title: String,
			Code: String,
			Version: String,
			Environment: 
			{
				Title: String,
				Code: String
			}
		},
		Recipient: 
		{
			Title: String,
			Code: String,
			Version: String,
			Environment: 
			{
				Title: String,
				Code: String
			}
		},
		RequestMessageID: {}
	},
	ProjectReference: 
	{
		GlobalID: String,
		Title: String
	},
	Project: 
	{
		GlobalID: String,
		CreationDate: 0001-01-01,
		CreatedBy: String,
		ModifiedDate: 0001-01-01,
		ModifiedBy: String,
		Code: String,
		Name: String,
		Description1: String,
		Description2: String,
		Address: 
		{
			AddressLine1: String,
			AddressLine2: String,
			HouseNumber: String,
			HouseNumberSuffix: String,
			PostalCode: String,
			City: String,
			Country: 
			{
				GlobalID: String,
				Title: String
			}
		},
		MailingAddress: 
		{
			POBox: String,
			PostalCode: String,
			City: String,
			Country: 
			{
				GlobalID: String,
				Title: String
			}
		},
		ProjectCategoryReference: 
		{
			GlobalID: String,
			Title: String
		},
		ProjectTypeReference: 
		{
			GlobalID: String,
			Title: String
		},
		ProjectStatusReference: 
		{
			GlobalID: String,
			Title: String
		},
		StartDate: 0001-01-01,
		EndDate: 0001-01-01,
		CompletionDate: 0001-01-01,
		Inactive: False,
		Website: String,
		IsTemplateProject: False,
		CustomFields: 
		[
			{
				Name: String,
				Value: String
			}
		]
	},
	HousingTypes: 
	[
		{
			GlobalID: String,
			ProjectReference: 
			{
				GlobalID: String,
				Title: String
			},
			Code: String,
			Description: String,
			CustomFields: 
			[
				{
					Name: String,
					Value: String
				}
			],
			CreationDate: 0001-01-01,
			CreatedBy: String,
			ModifiedDate: 0001-01-01,
			ModifiedBy: String
		}
	],
	ConstructionBlocks: 
	[
		{
			GlobalID: String,
			ProjectReference: 
			{
				GlobalID: String,
				Title: String
			},
			Code: String,
			Description: String,
			CustomFields: 
			[
				{
					Name: String,
					Value: String
				}
			],
			CreationDate: 0001-01-01,
			CreatedBy: String,
			ModifiedDate: 0001-01-01,
			ModifiedBy: String
		}
	],
	ConstructionNumbers: 
	[
		{
			GlobalID: String,
			ProjectReference: 
			{
				GlobalID: String,
				Title: String
			},
			HousingTypeReference: 
			{
				GlobalID: String,
				Title: String
			},
			ConstructionBlockReference: 
			{
				GlobalID: String,
				Title: String
			},
			Code: String,
			Description: String,
			Address: 
			{
				AddressLine1: String,
				AddressLine2: String,
				HouseNumber: String,
				HouseNumberSuffix: String,
				PostalCode: String,
				City: String,
				Country: 
				{
					GlobalID: String,
					Title: String
				}
			},
			RentalHouse: False,
			GuaranteeCertificateNumber: String,
			Inactive: False,
			CustomFields: 
			[
				{
					Name: String,
					Value: String
				}
			],
			CreationDate: 0001-01-01,
			CreatedBy: String,
			ModifiedDate: 0001-01-01,
			ModifiedBy: String,
			ViewingDate: 0001-01-01,
			ViewingDateSpecified: False,
			DeliveryDate: 0001-01-01,
			DeliveryDateSpecified: False
		}
	],
	Documents: 
	[
		{
			GlobalID: String,
			RootDocumentID: String,
			Code: String,
			Subject: String,
			VersionNumber: String,
			NewestVersion: False,
			RelationReference: 
			{
				GlobalID: String,
				Title: String
			},
			DocumentTypeReference: 
			{
				GlobalID: String,
				Title: String
			},
			ProjectReference: 
			{
				GlobalID: String,
				Title: String
			},
			ConstructionBlockReference: 
			{
				GlobalID: String,
				Title: String
			},
			ConstructionNumberReference: 
			{
				GlobalID: String,
				Title: String
			},
			HousingTypeReference: 
			{
				GlobalID: String,
				Title: String
			},
			Floor: 0,
			FloorSpecified: False,
			DeletedDate: 0001-01-01,
			DeletedDateSpecified: False,
			File: 
			{
				Type: String,
				Name: String,
				Size: 0,
				Content: String,
				ModifiedDate: 0001-01-01
			},
			CustomFields: 
			[
				{
					Name: String,
					Value: String
				}
			],
			CreationDate: 0001-01-01,
			CreatedBy: String,
			ModifiedDate: 0001-01-01,
			ModifiedBy: String
		}
	],
	PurchaseContracts: 
	[
		{
			GlobalID: String,
			Code: String,
			Description: String,
			ProjectReference: 
			{
				GlobalID: String,
				Title: String
			},
			ProductCode: String,
			Relation: 
			{
				GlobalID: String,
				NameLine1: String,
				NameLine2: String,
				Address: 
				{
					AddressLine1: String,
					AddressLine2: String,
					HouseNumber: String,
					HouseNumberSuffix: String,
					PostalCode: String,
					City: String,
					Country: 
					{
						GlobalID: String,
						Title: String
					}
				},
				MailingAddress: 
				{
					POBox: String,
					PostalCode: String,
					City: String,
					Country: 
					{
						GlobalID: String,
						Title: String
					}
				},
				Telephone: String,
				Mobile: String,
				Email: String,
				IBAN: String,
				BankAccountNumber: String,
				Website: String,
				Inactive: False,
				CustomFields: 
				[
					{
						Name: String,
						Value: String
					}
				],
				CreationDate: 0001-01-01,
				CreatedBy: String,
				ModifiedDate: 0001-01-01,
				ModifiedBy: String
			},
			Inactive: False,
			CustomFields: 
			[
				{
					Name: String,
					Value: String
				}
			],
			CreationDate: 0001-01-01,
			CreatedBy: String,
			ModifiedDate: 0001-01-01,
			ModifiedBy: String
		}
	]
}